﻿using System;
using System.IO;
using System.Reflection;

namespace PasswordControl.UI.WPF.Data
{
    class Configuration
    {
        public static string AppDataDir { get; private set; }

        static Configuration()
        {
            var assembly = Assembly.GetEntryAssembly();
            var appData = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData), assembly.GetName().Name);
            if (!Directory.Exists(appData)) Directory.CreateDirectory(appData);
            AppDataDir = appData;
        }
    }
}
